﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using BadmintonApp.Entity;

namespace BadmintonApp.DAO.Interface
{
    public interface IAnnouncementDAO
    {
        /// <summary>
        /// 插入一个公告
        /// </summary>
        /// <param name="annoInfo">公告信息类</param>
        void InsertAnnouncement(TAnnouncementsInfo annoInfo);

        /// <summary>
        /// 更新一个公告
        /// </summary>
        /// <param name="annoInfo">公告信息类</param>
        void UpdateAnnouncement(TAnnouncementsInfo annoInfo);

        /// <summary>
        /// 删除一个公告
        /// </summary>
        /// <param name="annoID">公告ID</param>
        void DeleteAnnouncement(int annoID);

        /// <summary>
        /// 获取所有公告
        /// </summary>
        /// <returns>公告信息类列表</returns>
        DataSet GetAllAnnouncement();
    }
}
